package com.qf.electronic.common;


public enum ResponseStatus {
    OK(2000,"OK"),
    NO_USER(4000, "user not found"),
    BAD_CREDENTIALS(4001, "bad credentials"),
    USER_DISABLED(4002, "user disabled"),
    INVALID_PARAMETER(4003, "invalid parameter"),
    ILLEGAL_DATA_STATE(4004, "illegal data state"),
    INTERNAL_ERROR(5000, "internal error");

    private int status;

    private String msg;

    ResponseStatus(int status, String msg){
        this.status = status;
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
